<include file="Common@Public:header_user"/>
		<div style="clear: both;"></div>

		<script src="__PUBLIC__/m/js/jquery.panelslider.js"></script>
		<script>
			$('#left-panel-link').panelslider();
		</script>
				<script type="text/javascript">

						$(document)
							.ajaxStart(function(){
								$("button:submit").addClass("am-btn-loading").attr("disabled", true).text('loading...');
							})
							.ajaxStop(function(){
								$("button:submit").removeClass("am-btn-loading").attr("disabled", false).text('登  入');
							});


						$("form").submit(function(){
							var self = $(this);
							$.post(self.attr("action"), self.serialize(), success, "json");
							return false;

							function success(data){
								if(data.status){
									window.location.href = data.url;
								} else {
									self.find(".Validform_checktip").addClass('am-alert').text(data.info);
									setTimeout(function(){
										self.find(".Validform_checktip").removeClass('am-alert').text('');
									},3000);
									//刷新验证码
									$(".reloadverify").click();
								}
							}
						});

						$(function(){
							var verifyimg = $(".verifyimg").attr("src");
					        $(".reloadverify").click(function(){
					            if( verifyimg.indexOf('?')>0){
					                $(".verifyimg").attr("src", verifyimg+'&random='+Math.random());
					            }else{
					                $(".verifyimg").attr("src", verifyimg.replace(/\?.*$/,'')+'?'+Math.random());
					            }
					        });
						});
					</script>
		<div class="s_middle">
			<div class="container">
				<div class="container-fluid">
					<h2>会员登录</h2>
				</div>
				<div class="con_form">
					<form action="__SELF__"  method="post" class="am-form am-form-horizontal">
						<div class="con_form_c"><span>用户名：</span><input class="_p_span_r" type="text" placeholder="请输入用户名"  ajaxurl="/member/checkUserNameUnique.html" errormsg="请填写1-16位用户名" nullmsg="请填写用户名" datatype="*1-16" value="" name="username"></div>
						
						<div class="con_form_c"><span style="letter-spacing:0.5em;
" >密码:</span><input class="_p_span_r" type="password" placeholder="请输入密码"  errormsg="密码为6-20位" nullmsg="请填写密码" datatype="*6-20" name="password"></div>
						
							<p style="text-align:center;"><span class="_p_span_l">验证码 ：</span>
							<input class="_p_span_r" style="width:18%;line-height:30px;" type="text" placeholder="请输入验证码"  errormsg="请填写5位验证码" nullmsg="请填写验证码" datatype="*5-5" name="verify">
							<span><img class="verifyimg reloadverify" alt="点击切换" src="{:U('verify')}" style="cursor:pointer; height:30px;"></span></p>
						
						</b></div>
						<div class="con_form_c" style="width: 70%;margin:5px auto 0 auto;padding-top: 5px;height: 30px;"><input type="submit" value="登陆" class="sub reset"><input type="submit" value="注册" class="res"></div>
					</form>
				</div>




			</div>


		</div>

<include file="Common@Public:footer"/>
	</div>
</body>
</html>